home *** CD-ROM | disk | FTP | other *** search
- Path: news.bcit.bc.ca!news
- From: Travis Koch <travis@arcs.bcit.bc.ca>
- Newsgroups: comp.lang.c
- Subject: Linking libs with libs.
- Date: Fri, 19 Apr 1996 13:00:23 -0700
- Organization: ARCS Lab, BCIT
- Message-ID: <3177F0D7.7335@arcs.bcit.bc.ca>
- NNTP-Posting-Host: redding.arcs.bcit.bc.ca
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.01 (WinNT; I)
-
- we have a problem..
- developing a large project in Solaris 2.4, using
- gcc 2.6.3 linking with f77 (don't ask).
-
- BTW f77 just calls Sun's ld, including some fortran
- libs along the way.
-
- We have 2 static libraries which we need to keep
- separate.
-
- I'm calling a function defined in libA.a from
- libB.a. when compiling a small driver program, the
- function is called only from the lib, and is
- therefore not linked in.
-
- Question.
-
- does anyone know of a way to force linking of a
- function from a static lib, even when its not
- called?
-
- TIA
-